import 'package:flutter/material.dart';
import 'package:note/common/common.dart';

class DefaultIcon extends StatelessWidget {
  const DefaultIcon(
      {super.key, required this.icon, this.onTap, this.color, this.size});

  final Function? onTap;
  final IconData icon;
  final Color? color;
  final double? size;

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
        onTap: () => onTap,
        child: Icon(
          icon,
          size: size,
          color: color ?? Styles.mainThemeColor,
        ));
  }
}

class DefaultTextIcon extends StatelessWidget {
  const DefaultTextIcon(
      {super.key, required this.text, this.onTap, this.color, this.size});

  final Function? onTap;
  final Text text;
  final Color? color;
  final double? size;

  @override
  Widget build(BuildContext context) {
    return Container();
  }
}
